How to use the smtp.js API to send emails with JavaScript